//
//  WMDefine.h
//  witMorning
//
//  Created by Mac mini on 2018/1/2.
//  Copyright © 2018年 zt. All rights reserved.
//

#ifndef WMDefine_h
#define WMDefine_h

#define STATUE_BAR_HEIGHT CGRectGetHeight([UIApplication sharedApplication].statusBarFrame)
#define NAV_HEIGHT  (CGRectGetHeight([UIApplication sharedApplication].statusBarFrame)+CGRectGetHeight(self.navigationController.navigationBar.frame))

#define SCREEN_H [UIScreen mainScreen].bounds.size.height
#define SCREEN_W [UIScreen mainScreen].bounds.size.width

#define USERDEF_SET_VALUE(value,key) [[NSUserDefaults standardUserDefaults] setValue:value forKey:key]
#define USERDEF_GET_VALUE(key) [[NSUserDefaults standardUserDefaults] valueForKey:key]

#define RGB(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
#define HEXCOLOR(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#define PUBLIC_BLUE  RGB(68,135,216,1) //[UIColor blueColor]
#define PUBLIC_DARK RGB(232, 232, 232, 1)
#define FORMATTER @"YYYY-MM-dd"

#define placeHolder @"placeholder"

#define BASE_HTTP @"http://221.226.124.194:8950/DataService/"

#import "UIView+Extension.h"

#endif /* WMDefine_h */
